package com.hfzy.ihk.web.aliyuncall.vo;

/**
 * Created by YANFA on 2018/7/26.
 */
/**
 * Created by YANFA on 2018/7/26.
 */
public class AliyunResponeVo {


    public AliyunResponeVo(){}

    private Integer code;

    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public AliyunResponeVo(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public static AliyunResponeVo success(){
        AliyunResponeVo vo = new AliyunResponeVo(0,"成功");
        return vo;

    }

    public static AliyunResponeVo fail(){
        AliyunResponeVo vo = new AliyunResponeVo(-1,"失败");
        return vo;

    }

    @Override
    public String toString() {
        return "AliyunResponeVo{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}